/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pig.generator.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品SKU表
 *
 * @author pig code generator
 * @date 2021-07-15 12:08:22
 */
@Data
@TableName("pms_sku_stock")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "商品SKU表")
public class PmsSkuStock extends Model<PmsSkuStock> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private Long productId;
    /**
     * sku编码
     */
    @ApiModelProperty(value="sku编码")
    private String skuCode;
    /**
     * 价格
     */
    @ApiModelProperty(value="价格")
    private BigDecimal price;
    /**
     * 库存
     */
    @ApiModelProperty(value="库存")
    private Integer stock;
    /**
     * 预警库存
     */
    @ApiModelProperty(value="预警库存")
    private Integer lowStock;
    /**
     * 商品销售属性，json格式
     */
    @ApiModelProperty(value="商品销售属性，json格式")
    private String spData;
    /**
     * 展示图片
     */
    @ApiModelProperty(value="展示图片")
    private String pic;
    /**
     * 销量
     */
    @ApiModelProperty(value="销量")
    private Integer sale;
    /**
     * 单品促销价格
     */
    @ApiModelProperty(value="单品促销价格")
    private BigDecimal promotionPrice;
    /**
     * 锁定库存
     */
    @ApiModelProperty(value="锁定库存")
    private Integer lockStock;
    }
